﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace WROA.Helper
{
    public class MD5Safe
    {
        /// <summary>
        /// 密码加密
        /// </summary>
        /// <param name="PasswordString">密码值</param>
        /// <returns>加密后的值</returns>
        public static string EncryptPassword(string PasswordString)
        {
            string enPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(PasswordString, "MD5");//使用MD5加密
            return enPassword;
        }
    }
}